package com.tcode.elasticsearch.repository;

import com.tcode.elasticsearch.bean.UserBeaan;
import org.springframework.data.elasticsearch.repository.ElasticsearchRepository;

import java.util.List;

public interface UserRepository extends ElasticsearchRepository<UserBeaan,Integer> {

    /**
     * 根据id区间查找用户
     * @param id1
     * @param id2
     * @return
     */
    List<UserBeaan> findByIdBetween(int id1, int id2);
}
